/*
 * @Author: your name
 * @Date: 2022-04-19 18:45:56
 * @LastEditTime: 2022-05-24 17:53:10
 * @LastEditors: error: git config user.name && git config user.email & please set dead value or install git
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \032 SDF16H_FBL_V1.0\examples\none_evm\ble_simple_peripheral\sd_code\sd_dev_ble.h
 */
/**
  ******************************************************************************
  * @file    xxx.h
  * @author  SD Electronics xxx
  * @version V1.0
  * @date    xx-xx-xx
  * @brief   xxxxxxxxxxxxxxxxxx.
  ******************************************************************************
  */
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef _SD_DEV_BLE_H
#define _SD_DEV_BLE_H
/* Includes ------------------------------------------------------------------*/
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#include "driver_iomux.h"
#include "sd_common.h"

/** 
  * @说明  BLE设备硬件配置相关定义 
  */
typedef struct
{
    uint8_t *ble_name;                    //name
	mac_addr_t *addr;	            	  //MAC
	uint8_t *adv_data;				      //广播数据
    uint32_t adv_int_MIN;                     //广播间隔
    uint32_t adv_int_MAX;                     //广播间隔
    uint32_t link_int_MIN;                    //连接间隔
    uint32_t link_int_MAX;                    //连接间隔
    uint32_t mtu_value;                   //mtu
    uint8_t service_uuid[2];
    uint8_t notify_uuid[2];
    uint8_t write_uuid[2];
    uint32_t pincode;          //!< Password.
    char* FirmwareVersion;
}ST_BLE_CNT_PHY,*PST_BLE_CNT_PHY;

/** 
  * @说明  BLE作为主机连接的从机设备索引
  */
typedef enum
{
    BLE_INDEX_1 = 0,
    BLE_INDEX_2	,
    BLE_INDEX_3	,
    BLE_INDEX_4   ,
    BLE_INDEX_5	,
    BLE_INDEX_6	,
    BLE_INDEX_MAX ,
}EN_BLE_DEFINE;

/** 
  * @说明  BLE控制结构体 
  */
typedef struct
{
	bool	bInitFlag;	        /* 串口初始化配置标志，只能被初始化一次 */
	PST_BLE_CNT_PHY	pstBLEInfo;
}ST_BLE_CTRL, *PST_BLE_CTRL;  
  







/** @defgroup FunctionDeclaration
  * @{
  */ 

/**
  * @}
  */ 
#endif
/******************* (C) COPYRIGHT 2011 ShenZhenShiding electronics **************************/
